package com.erbao.datastructurearithmetic.tyro;

/**
 * @author CaoBaoYin
 * @since 21/8/10 10:33
 */
public class TreeNode<V> {
    V val;
    TreeNode<V> left;
    TreeNode<V> right;

    public TreeNode() {
    }

    public TreeNode(V val) {
        this.val = val;
    }

    public TreeNode(V val, TreeNode<V> left, TreeNode<V> right) {
        this.val = val;
        this.left = left;
        this.right = right;
    }
}
